package com.ruoyi.rgpp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.rgpp.mapper.JmrNumMapper;
import com.ruoyi.rgpp.domain.JmrNum;
import com.ruoyi.rgpp.service.IJmrNumService;
import com.ruoyi.common.core.text.Convert;

/**
 * 统计图标Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-06-16
 */
@Service
public class JmrNumServiceImpl implements IJmrNumService 
{
    @Autowired
    private JmrNumMapper jmrNumMapper;

    /**
     * 查询统计图标
     * 
     * @param id 统计图标主键
     * @return 统计图标
     */
    @Override
    public JmrNum selectJmrNumById(Long id)
    {
        return jmrNumMapper.selectJmrNumById(id);
    }

    /**
     * 查询统计图标列表
     * 
     * @param jmrNum 统计图标
     * @return 统计图标
     */
    @Override
    public List<JmrNum> selectJmrNumList(JmrNum jmrNum)
    {
        return jmrNumMapper.selectJmrNumList(jmrNum);
    }

    public List<JmrNum> selectList(){
        return jmrNumMapper.selectList();
    }

    /**
     * 新增统计图标
     * 
     * @param jmrNum 统计图标
     * @return 结果
     */
    @Override
    public int insertJmrNum(JmrNum jmrNum)
    {
        return jmrNumMapper.insertJmrNum(jmrNum);
    }

    /**
     * 修改统计图标
     * 
     * @param jmrNum 统计图标
     * @return 结果
     */
    @Override
    public int updateJmrNum(JmrNum jmrNum)
    {
        return jmrNumMapper.updateJmrNum(jmrNum);
    }

    /**
     * 批量删除统计图标
     * 
     * @param ids 需要删除的统计图标主键
     * @return 结果
     */
    @Override
    public int deleteJmrNumByIds(String ids)
    {
        return jmrNumMapper.deleteJmrNumByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除统计图标信息
     * 
     * @param id 统计图标主键
     * @return 结果
     */
    @Override
    public int deleteJmrNumById(Long id)
    {
        return jmrNumMapper.deleteJmrNumById(id);
    }
}
